//
//  UITableViewCell+WFHeight.m
//  WisdomFarm
//
//  Created by sky on 2017/11/26.
//  Copyright © 2017年 sky. All rights reserved.
//

#import "UITableViewCell+WFHeight.h"
#import <objc/runtime.h>

@implementation UITableViewCell (WFHeight)

- (CGFloat)cellHeight {
    id obj = objc_getAssociatedObject(self, @selector(cellHeight));
    if (obj) {
        return [obj floatValue];
    }
    return 0;
}

- (void)setCellHeight:(CGFloat)cellHeight {
    objc_setAssociatedObject(self, @selector(cellHeight), @(cellHeight), OBJC_ASSOCIATION_RETAIN);
}

@end
